// attr接口参数类型
export interface GetAttrListApiParams{
    category1Id: number;
    category2Id: number;
    category3Id: number;
}

export interface AttrValueItem{
    id?:number,
    valueName?:string
}

export type AttrValueList= AttrValueItem[]

export interface AttrItem{
    id?:number,
    attrName:string,
    attrValueList : AttrValueList
}

/*
   [{
      "attrName": "string", // 属性名
      "attrValueList": [ // 属性值列表
        {
          "id": 0, 
          "valueName": "string" // 属性值
        }
      ],
      "id": 0,
    }]
*/

export type AttrList = AttrItem[]

// 添加属性类型
export interface SaveAttrApiParams extends AttrItem{
  categoryId:number,
  categoryLevel:number,
}

export interface SaveAttrValueItem extends AttrValueItem {
  isEdit:boolean
}

export interface SaveAttrItem extends AttrItem {
  attrValueList:SaveAttrValueItem[]
}